package zytrade.service.mobile.dao;

import zytrade.service.mobile.entity.TerminalRoleDO;
import java.util.List;
/**
 * @Author: Wu
 * @Description:终端角色dao接口
 * @Date: Create in 16:29 2017/11/15
 * @Modified By:
 */
public interface TerminalRoleMapper {
    /**
     * @Author: Wu
     * @param id
     * @Description:根据id删除
     * @Date:  Create in 15:31 2017/11/15
     */
   public int deleteByPrimaryKey(Long id);

    /**
     * @Author: Wu
     * @param record
     * @Description:插入实体(自动生成主键)
     * @Date:  Create in 15:31 2017/11/15
     */
   public int insert(TerminalRoleDO record);

    /**
     * @Author: Wu
     * @param record
     * @Description:插入实体(须先查询主键)
     * @Date:  Create in 15:31 2017/11/15
     */
    public int insertSelective(TerminalRoleDO record);

    /**
     * @Author: Wu
     * @param id
     * @Description:根据id查询单个实体
     * @Date:  Create in 15:31 2017/11/15
     */
    public TerminalRoleDO selectByPrimaryKey(Long id);

    /**
     * @Author: Wu
     * @param record
     * @Description:根据id动态更新实体
     * @Date:  Create in 15:31 2017/11/15
     */
    public int updateByPrimaryKeySelective(TerminalRoleDO record);

    /**
     * @Author: Wu
     * @param record
     * @Description:根据id更新整个实体
     * @Date:  Create in 15:31 2017/11/15
     */
    public int updateByPrimaryKey(TerminalRoleDO record);

    /**
     * @Author: Wu
     * @param record
     * @Description:查询实体列表表
     * @Date:  Create in 15:31 2017/11/15
     */
    public List<TerminalRoleDO> searchEntityList(TerminalRoleDO record);

    /**
     * @Author: Wu
     * @param id
     * @Description:根据id查询实体,关联查询
     * @Date:  Create in 15:31 2017/11/15
     */
    public TerminalRoleDO searchEntityById(Long id);

    /**
     * @Author: Wu
     * @param terminalRoleDO
     * @Description:查询总记录数
     * @Date:  Create in 15:31 2017/11/15
     */
    public int getEntityCount(TerminalRoleDO terminalRoleDO);

    /**
     * @Author: Wu
     * @Description:逻辑删除信息
     * @Date: Create in 16:29 2017/11/10
     */
    public int logicDelete(TerminalRoleDO terminalRole) ;

    /**
     * @Author: WuTerminalRoleDO
     * @Description:批量逻辑删除信息
     * @Date:  Create in 16:29 2017/11/10
     */
    public int logicDeletes(List ids) ;

    /**
     * @Author: Wu
     * @Description:获取帮助版本管理未使用的角色下拉列表
     * @Date:  Create in 16:29 2017/11/10
     */
    public List<TerminalRoleDO> getHelpNoUseList() ;


}